<template>
  <div class="profile_title">
    <h2>{{title}}</h2>
  </div>
</template>

<script>
  export default {
    name: "ProfileTitle",
    props: {
      title: {
        type: String,
        default: '标题'
      }
    }
  }
</script>

<style scoped>
  .profile_title {
    height: 50px;
    margin: 10px 10px 0;
    border-bottom: 1px solid #eee;
    line-height: 50px;
  }

  .profile_title h2 {
    position: relative;
    padding-left: 25px;
    font-size: 18px;
  }

  .profile_title h2::before {
    position: absolute;
    top: 15px;
    left: 5px;
    width: 5px;
    height: 22px;
    background-color: #002766;
    content: '';
  }



</style>
